package cmd

import (
	"github.com/spf13/cobra"
	"log"
	"tool.go.com/internal/timer"
)

var calculateTime string
var duration string

var timeCmd = &cobra.Command{
	Use:	"timer",
	Short:	"时间格式处理",
	Long: 	"时间格式处理",
	Run: func(cmd *cobra.Command, args []string) {

	},
}


var nowTimeCmd = &cobra.Command{
	Use:	"now",
	Short:	"获取当前时间",
	Long: 	"获取当前时间",
	Run: func(cmd *cobra.Command, args []string) {
		log.Printf("args: %v", args)
		nowTime := timer.GetNowTimer()
		log.Printf("输出结果：%s, %d",nowTime.Format("2006-01-02 15:04:05"), nowTime.Unix())
	},
}